import { req } from "../utils/req.js"

// 退出登录
export const loginOutApi = (params) => req('POST',"/user/login", params);
// 获取收货地址
export const getshippingaddressApi = (params) => req('GET',"/user/api/address/search", params);
// 新增地址
export const addaddressApi = (params) => req('POST',"/user/api/address", params);
// 删除地址
export const deladdressApi = (params) => req('DELETE',"/user/api/address/"+ params);
// 修改地址
export const editorApi = (id,params) => req('PUT',"/user/api/address/"+ id ,params);
// 积分
export const getpointsApi = (params) => req('GET',"/user/user/points/info", params);
// 购机券
export const getcouponsApi = (params) => req('POST',"/user/coupons/page", params);
// 银行卡列表
export const getbanklistApi = (params) => req('GET',"/user/api/bank/search", params);
// 设置支付密码
export const setpaypasswordApi = (params) => req('PUT',"/user/user/withdrawal/updatePassword", params);
// 获取用户个人信息
export const getuserDataApi = (params) => req('GET',"/user/user/get", params);
// 修改用户密码
export const updatepasswordApi = (params) => req('POST',"/user/user/updatePassword", params);
// 修改昵称
export const updateNicknameApi = (params) => req('PUT',"/user/user/modify", params);
// 获取用户等级信息
export const levelInfoApi = (params) => req('GET',"/user/user/level/info" , params);
// 退出登录
export const loginoutApi = (params) => req('POST',"/user/logout" , params);
// 上传图片到服务器
export const updateImgApi = (params) => req('PUT',"/user/user/modify/head" , params);
// 实名认证
export const modfyApi = (params) => req('PUT',"/user/user/modify/auth/info" , params);
// 实名认证信息
export const getInfoModifyApi = (params) => req('GET',"/user/user/auth/info" , params);
// 获取token
export const getTokenApi = (params) => req('POST',"/user/token" , params);
// 解析身份证信息
export const getidCardInfoApi = (params) => req('POST',"/user/analysis/idCard/img" , params);